import request from "@/plugins/axios";
// 菜单列表
export function listApi(data) {
  return request({
    url: "/admin/menu/trees",
    method: "post",
    data,
  });
}
// 菜单列表--权限
export function menusApi(data) {
  return request({
    url: "/admin/menu/menus",
    method: "post",
    data,
  });
}
// 菜单添加
export function addApi(data) {
  return request({
    url: "/admin/menu/create",
    method: "post",
    data,
  });
}
// 菜单修改
export function saveApi(data) {
  return request({
    url: "/admin/menu/save",
    method: "post",
    data,
  });
}
// 菜单状态
export function stateApi(data) {
  return request({
    url: "/admin/menu/state",
    method: "post",
    data,
  });
}
// 菜单删除
export function delApi(data) {
  return request({
    url: "/admin/menu/delete",
    method: "post",
    data,
  });
}
